<?php
/**
 * Created by PhpStorm.
 * User: River
 * Email: river0428@gmail.com
 * Date: 2018/6/11
 * Time: 下午5:47
 */

return [
    /*
    |--------------------------------------------------------------------------
    | 平台后台可访问的路由集合
    |--------------------------------------------------------------------------
    |
    */
    'admin' => [
        'home' => [
            'name' => '首页',
            'routes' => ['admin_home','admin_user','admin_user_all','post_password'],
            'children'=>[
                'admin_home' => [
                    'name' => '首页',
                    'routes' => [
                        'admin_home'
                    ],
                ],
            ]
        ],
        'report' => [
            'name' => '统计',
            'routes' => [],
            'children'=>[
                'admin_report_data' => [
                    'name' => '数据汇总',
                    'routes' => [
                        'admin_report_data'
                    ],
                ],
                'admin_user_map' => [
                    'name' => '用户注册数据',
                    'routes' => [
                        'admin_user_map','admin_user_map_data'
                    ],
                ],
                'admin_recharge_map' => [
                    'name' => '油卡充值数据',
                    'routes' => [
                        'admin_recharge_order_map','admin_recharge_order_map_data'
                    ],
                ],
                'admin_report_everyday' => [
                    'name' => '每日报表',
                    'routes' => [
                        'admin_api_report_everyday','admin_report_everyday'
                    ],
                ],
            ],
        ],
        'order' => [
            'name' => '油卡订单',
            'routes' => [],
            'children' => [
                'admin_recharge_order' => [
                    'name' => '油卡套餐充值',
                    'routes' => [
                        'admin_recharge_order','admin_all_recharge_order','admin_recharge_task','admin_api_channels_kv','admin_get_api_recharge', 'admin_call_mobile'
                    ],
                ],
                'admin_recharge_direct_order' => [
                    'name' => '油卡直接充值',
                    'routes' => [
                        'admin_recharge_direct_order','admin_all_recharge_order','admin_recharge_task','admin_api_channels_kv','admin_get_api_recharge', 'admin_call_mobile'
                    ],
                ],
                'admin_recharge_task_fail' => [
                    'name' => '油卡充值失败',
                    'routes' => [
                        'admin_recharge_task_fail','admin_all_recharge_order','admin_recharge_task_fail','admin_recharge_task_try','admin_recharge_task', 'admin_call_mobile'
                    ],
                ],
                'recharge_task_schedule'    => [
                    'name'  => '近期待充值任务',
                    'routes' => ['admin_recharge_task_schedule','admin_recharge_task_order','admin_recharge_task_hand','admin_recharge_task_export', 'admin_call_mobile'],
                ]
            ]
        ],
        'mobile_order' => [
            'name' => '话费订单',
            'routes' => [],
            'children' => [
                'admin_mobile_recharge_order' => [
                    'name' => '话费套餐充值',
                    'routes' => [
                        'admin_mobile_recharge_order','admin_mobile_all_recharge_order', 'admin_call_mobile'
                    ],
                ],
                'admin_mobile_recharge_direct_order' => [
                    'name' => '话费直接充值',
                    'routes' => [
                        'admin_mobile_recharge_direct_order','admin_mobile_all_recharge_order', 'admin_call_mobile'
                    ],
                ]
            ]
        ],
        'goods' => [
            'name' => '商城管理',
            'routes' => [],
            'children' => [
                'admin_goods_search' => [
                    'name' => '商品列表',
                    'routes' =>[
                        'admin_goods_search', 'admin_api_goods_search', 'admin_api_goods_add', 'admin_api_goods_update', 'admin_api_goods_delete'
                    ],
                ],
                'admin_goods_class_search' => [
                    'name' => '商品分类',
                    'routes' =>[
                        'admin_goods_class_search',
                        'admin_api_goods_class_search',
                        'admin_api_goods_childclass_search',
                        'admin_api_goods_class_add',
                        'admin_api_goods_class_update',
                        'admin_api_goods_class_delete',
                    ],
                ],
                'admin_goods_order_search' => [
                    'name' => '订单列表',
                    'routes' =>[
                        'admin_goods_order_search', 'admin_api_goods_order_search'
                    ],
                ],
            ],
        ],
        'member' => [
            'name' => '会员',
            'routes' => [],
            'children' => [
                'admin_member' => [
                    'name' => '会员列表',
                    'routes' => [
                        'admin_member','admin_all_member', 'admin_call_mobile'
                    ],
                ],
                'admin_member_oil_card' => [
                    'name' => '油卡列表',
                    'routes' => [
                        'admin_member_oil_card','admin_all_member_oil_card', 'admin_call_mobile'
                    ],
                ]
            ]
        ],
        'content' => [
            'name' => '运营',
            'routes' => [],
            'children' => [
                'admin_recharge' => [
                    'name' => '油卡套餐设置',
                    'routes' => [
                        'admin_recharge',
                        'admin_get_api_recharge','admin_post_api_recharge','admin_put_api_recharge','admin_delete_api_recharge'
                    ],
                ],
                'admin_mobile_recharge' => [
                    'name' => '话费套餐设置',
                    'routes' => [
                        'admin_mobile_recharge',
                        'admin_get_api_mobile_recharge','admin_post_api_mobile_recharge','admin_put_api_mobile_recharge',
                        'admin_delete_api_mobile_recharge','admin_recharge_task','admin_recharge_task_fail',
                        'admin_recharge_task_try','admin_handle_recharge'
                    ],
                ],
                'admin_coupon' => [
                    'name' => '优惠券',
                    'routes' => [
                        'admin_coupon',
                        'admin_get_api_coupon','admin_get_api_coupon','admin_put_api_coupon','admin_post_api_coupon','admin_delete_api_coupon'
                    ],
                ],
                'admin_article' => [
                    'name' => '常见问题',
                    'routes' => [
                        'admin_article',
                        'admin_delete_api_article','admin_put_api_article','admin_api_article','admin_api_qa_id','admin_api_qa','admin_all_article'
                    ],
                ],
                'admin_banner' => [
                    'name' => '轮播图',
                    'routes' => [
                        'admin_banner','admin_get_api_banner','admin_post_api_banner','admin_put_api_banner','admin_delete_api_banner'
                    ],
                ],
                'admin_channel' => [
                    'name' => '推广链接',
                    'routes' => [
                        'admin_channel','admin_all_member','admin_api_channels_kv'
                    ],
                ],
                'push' => [
                    'name'=>'消息推送',
                    'routes'=>[
                        'admin_push_message','admin_api_push_message','admin_api_push_message_send',
                        'admin_api_push_message_add','admin_api_push_message_update','admin_api_push_message_delete'
                    ]
                ]
            ]
        ],
        'activity' => [
            'name' => '活动',
            'routes'=>[],
            'children' => [
                'admin_oilcard' => [
                    'name' => '油卡管理',
                    'routes' => ['admin_oilcard_list','admin_api_card_data','api_card_add','api_card_update','api_card_delete'],
                ],
                'admin_activity' => [
                    'name' => '领取油卡',
                    'routes' => ['admin_oilcard_get','admin_api_card_order_search','admin_api_card_order_update','admin_api_card_export'],
                ],
                'mayDay' => [
                    'name' => '五一兑换',
                    'routes' => ['admin_mayday_search','admin_api_mayday_list'],
                ]
            ]
        ],
        'system'=>[
            'name'=>'系统设置',
            'routes'=>[],
            'children'=>[
                'admin_account'=>[
                    'name'=>'账号管理',
                    'routes'=>[
                        'admin_user','admin_role','get_admin_user','post_admin_user','put_admin_user','delete_admin_user',
                        'get_admin_role_all','post_admin_role','put_admin_role','delete_admin_role','',''
                    ]
                ],
                'setting'=>[
                    'name'=>'系统配置',
                    'routes'=>[
                        'admin_configure','update_configure'
                    ]
                ],
                'control'=>[
                    'name'=>'应用控制中心',
                    'routes'=>[
                        'admin_app_control','admin_api_app_control',
                        'admin_api_app_control_add','admin_api_app_control_fast_update','admin_api_app_control_update','admin_api_app_control_delete'
                    ]
                ],
                'operation_record'=>[
                    'name'=>'平台操作记录',
                    'routes'=>[
                        'admin_admin_operation_record','admin_api_admin_operation_record'
                    ]
                ]
            ]
        ]
    ],
];